﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


class MaxSequenceOfEqualElements
{
    static void Main()
    {
        int[] array = new int[20];
        int maxSequence = 1;
        int tempSequence = 0;
        int currentElement = 1;

        for (int counter = 0; counter < array.Length; counter++)
        {
            array[counter] = int.Parse(Console.ReadLine());
        }

        for (int counter = 0; counter < array.Length; counter++)
        {
            if (counter != 0)
            {
                if (array[counter] == currentElement)
                {
                    tempSequence++;
                }
                else
                {
                    tempSequence = 1;
                    currentElement = array[counter];
                }
            }
            else
            {
                currentElement = array[counter];
                tempSequence++;
            }

            if (tempSequence >= maxSequence)
            {
                maxSequence = tempSequence;
            }
        }
        Console.WriteLine();
        Console.WriteLine(maxSequence);
    }
}

